![]() |
GetGDevice |
||||
Header: | Quickdraw.h | Carbon status: | Supported | |
Obtains a handle to the GDevice structure for the current device.
GDHandle GetGDevice ();
A handle to the current device.
At any given time, exactly one video device is the current device—that is, the one on which drawing is actually taking place.
Color QuickDraw stores a handle to the current device in the global variable TheGDevice.
All existing GDevice structures are linked together in the device list. After using this function to obtain a handle to the current GDevice structure, your application can use the GetNextDevice function to obtain a handle to the next GDevice structure in the list.
You can also use the GetGWorld function to get a handle to the GDevice structure for the current device.
The GetGDevice function may move or purge memory blocks in the application heap; do not call this function at interrupt time.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)